﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SocketTool.Model.DataModels
{
    public class TCPClientDataModel : AbsNetBaseModel
    {
        public string ServerIP { get; set; }
        public int ServerPort { get; set; }
        public int SocketBufferSize { get; set; }
        public int MsgBufferSize { get; set; }
        public int SendTimeout { get; set; }
        public int ReceiveTimeout { get; set; }

        /// <summary>
        /// 是否启用心跳
        /// </summary>
        public bool Heartbeat { get; set; }

        /// <summary>
        /// 是否自动回复心跳
        /// </summary>
        public bool AutoRecvHeart { get; set; }

        /// <summary>
        /// 如果未启用自动回复心跳，则按照心跳间隔主动发送心跳
        /// </summary>
        public int HeartbeatInterval { get; set; }

        /// <summary>
        /// 心跳内容
        /// </summary>
        public string HeartbeatContent { get; set; }

        /// <summary>
        /// 是否启用自定义协议
        /// </summary>
        public bool Protocol { get; set; }

        /// <summary>
        /// 协议内容
        /// </summary>
        public string ProtocolContent { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Slot { get; set; }

    }
}
